
import MButton from './button'
import MCaseList from './case-list'
import MStar from './star'
import MTaskInfoList from './task-info-list'
import MDetail from './detail'
import MTimeline from './timeline'
import MImagePicker from './image-picker'
import MMenu from './menu'

const components = [
  MCaseList,
  MStar,
  MTaskInfoList,
  MDetail,
  MTimeline,
  MImagePicker,
  MMenu,
]

const install = function (Vue) {
  if (install.installed) return
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}
const API = {
  install,
}

export {
  MCaseList,
  MStar,
  MTaskInfoList,
  MDetail,
  MTimeline,
  MImagePicker,
  MMenu,
}
export default API